package io;

import java.io.File;
import java.io.IOException;

public class IODemo7 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt");
        boolean flag = file.createNewFile();
        System.out.println(flag);

        File dest = new File("./aaa/test1.txt");
        flag = file.renameTo(dest);
        System.out.println(flag);
    }
}
